package com.ruoyi.chy.mapper;

import java.util.List;
import com.ruoyi.chy.domain.GroupPurchase;

/**
 * 优惠团购Mapper接口
 * 
 * @author liuweichao
 * @date 2025-05-30
 */
public interface GroupPurchaseMapper 
{
    /**
     * 查询优惠团购
     * 
     * @param id 优惠团购主键
     * @return 优惠团购
     */
    public GroupPurchase selectGroupPurchaseById(Integer id);

    /**
     * 查询优惠团购列表
     * 
     * @param groupPurchase 优惠团购
     * @return 优惠团购集合
     */
    public List<GroupPurchase> selectGroupPurchaseList(GroupPurchase groupPurchase);

    /**
     * 新增优惠团购
     * 
     * @param groupPurchase 优惠团购
     * @return 结果
     */
    public int insertGroupPurchase(GroupPurchase groupPurchase);

    /**
     * 修改优惠团购
     * 
     * @param groupPurchase 优惠团购
     * @return 结果
     */
    public int updateGroupPurchase(GroupPurchase groupPurchase);

    /**
     * 删除优惠团购
     * 
     * @param id 优惠团购主键
     * @return 结果
     */
    public int deleteGroupPurchaseById(Integer id);

    /**
     * 批量删除优惠团购
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGroupPurchaseByIds(Integer[] ids);
}
